﻿<Window x:Class="CPPEI.Coolzon.Designer.Views.AddtitionPropertyWindow"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:CPPEI.Coolzon.Designer.Views"
             xmlns:ui="clr-namespace:CPPEI.Coolzon.UI;assembly=CPPEI.Coolzon.UI" 
             mc:Ignorable="d" 
             Height="300" Width="500" Title="属性" WindowStartupLocation="CenterScreen"
        Style="{DynamicResource WindowStyle}">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid x:Name="_grid" Grid.Row="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <TextBlock Grid.Column="0" Grid.Row="0" Text="名称" Margin="3,5,3,3"/>
            <TextBox x:Name="_name"  Grid.Column="1" Grid.Row="0" Margin="3" IsReadOnly="True" Text="{Binding Path=Name, Mode=TwoWay}" />
            <TextBlock Grid.Column="0" Grid.Row="1" Text="描述" Margin="3,5,3,3"/>
            <TextBox x:Name="_caption" Grid.Column="1" Grid.Row="1" Margin="3" Text="{Binding Path=Caption, Mode=TwoWay}"/>
            <TextBlock Grid.Column="0" Grid.Row="2" Text="类型" Margin="3,5,3,3"/>
            <TextBox x:Name="_type" Grid.Column="1" Grid.Row="2" Margin="3" IsReadOnly="True"  />
        </Grid>
        <Grid Grid.Row="1" >
            <Button Style="{DynamicResource  SubmitOrCancelButtonStyle}" x:Name="btnSubmit" Grid.Column="0" Grid.Row="3" HorizontalAlignment="Center" Content="确 定" Click="btnSubmit_Click" Margin="5"  />
        </Grid>
    </Grid>
</Window>
